<?php

// @formatter:off
/**
 * @file dynamic.conf.grants.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: dynamic.conf.grants.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/includes/dynamic.conf.grants.php $
 */
// @formatter:on

if(!$wcGroup) {
	//
	// Setting default group to avoid further errors.
	$wcGroup = WCGroupsHolder::I()->item($wcDefaults["group"]);
	//
	// Checking if the action should be rechanged.
	if(defined("__INDEX__") || defined("__MOBILE__")) {
		if(!$wcGroup->isPublic()) {
			$wcAction = WC_ACTION_NOTHING;
		}
	} elseif(defined("__SERVICE__") || defined("__SIMPLE_CONTAINER__") || defined("__RSS__")) {
		$wcAction = $wcActionForbidden;
		$wcActionForbidden = false;
	}
}
if(!$wcProfile->grantedGroup($wcGroup)) {
	$wcDirectory = false;
	$wcImage = false;
	$wcComic = false;
	$wcTag = false;
	$wcCollection = false;
}